package com.fkdx.common.token;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * Token 实体类
 *
 * @author Chopper
 * @version v1.0 2020-11-13 10:02
 */
@Data
@ApiModel(description = "登录成功返回实体类")
public class TokenDomain {
  /**
   * 用户名ID
   */
  private Long id;

  /**
   * 手机号
   **/
  private String phone;

  /**
   * 用户名
   */
  private String name;
  /**
   * 账号
   */
  private String username;

  /**
   * 积分
   **/
  private Integer integral;
  /**
   * 访问token
   */
  @ApiModelProperty(value = "访问token")
  private String accessToken;

  /**
   * 刷新token
   */
  @ApiModelProperty(value = "刷新token")
  private String refreshToken;

  private Integer version;

  private Long tenantId;
}
